﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMountCardUpdate extends IMessageBase
    {
        public var mountCards:Array;
        public var manureCards:Array;
        public var times:int;
        public var lastResetDt:Date;
        public var getAward:int;
        public const _type:int = 16222;
        public static var _regist:SMountCardUpdate = new SMountCardUpdate(true);

        public function SMountCardUpdate(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMountCardUpdate();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            SeqSMountCardHelper.write(param1, this.mountCards);
            SeqSManureCardHelper.write(param1, this.manureCards);
            param1.writeInt(this.times);
            param1.writeDate(this.lastResetDt);
            param1.writeInt(this.getAward);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.mountCards = SeqSMountCardHelper.read(param1);
            this.manureCards = SeqSManureCardHelper.read(param1);
            this.times = param1.readInt();
            this.lastResetDt = param1.readDate();
            this.getAward = param1.readInt();
            return;
        }// end function

    }
}
